package ducna.misscall.screen.misscall;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import ducna.alozo.misscall.R;
import ducna.misscall.comon.fragment.BaseFragment;

public class MainMissCallFragment extends BaseFragment {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.fragment_main_miss_call, container, false);
		FragmentTransaction transaction = getChildFragmentManager().beginTransaction();
		transaction.add(R.id.main_miss_call_frame, new MissCallFragment());
		transaction.commit();
		return view;
	}
	
	public void goDetail(long id) {
		FragmentTransaction transaction = getChildFragmentManager().beginTransaction();
		transaction.add(R.id.main_miss_call_frame, new DetailMissCallFragment());
		transaction.addToBackStack(null);
		transaction.commit();
	}

}
